﻿using System.ComponentModel.DataAnnotations;

namespace OperationPlugins.Validators.DataAnnotations
{
    public interface IUsePluginValidatorsAttributeResolveOperationContextFactory
    {
        /// <summary>
        /// Resolves the operation context factory.
        /// </summary>
        /// <param name="value">The value to validate.</param>
        /// <param name="validationContext">Describes the context in which a data annotations validation check is performed.</param>
        /// <returns>The operation context factory.</returns>
        IOperationContextFactory ResolveOperationContextFactory(object value, ValidationContext validationContext);
    }
}